#include "counter.h"
#include "sys/time.h"

std::vector<Counter *> Counter::counters;
uint64_t get_time_us()
{
    timeval now;
    gettimeofday(&now, NULL);
    return now.tv_sec*1000000+now.tv_usec;
}